<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
class PHPExcel_Worksheet_HeaderFooter
{
    private $oddHeader = "";
    private $oddFooter = "";
    private $evenHeader = "";
    private $evenFooter = "";
    private $firstHeader = "";
    private $firstFooter = "";
    private $differentOddEven = false;
    private $differentFirst = false;
    private $scaleWithDocument = true;
    private $alignWithMargins = true;
    private $headerFooterImages = [];
    const IMAGE_HEADER_LEFT = "LH";
    const IMAGE_HEADER_CENTER = "CH";
    const IMAGE_HEADER_RIGHT = "RH";
    const IMAGE_FOOTER_LEFT = "LF";
    const IMAGE_FOOTER_CENTER = "CF";
    const IMAGE_FOOTER_RIGHT = "RF";
    public function __construct()
    {
    }
    public function getOddHeader()
    {
        return $this->oddHeader;
    }
    public function setOddHeader($pValue)
    {
        $this->oddHeader = $pValue;
        return $this;
    }
    public function getOddFooter()
    {
        return $this->oddFooter;
    }
    public function setOddFooter($pValue)
    {
        $this->oddFooter = $pValue;
        return $this;
    }
    public function getEvenHeader()
    {
        return $this->evenHeader;
    }
    public function setEvenHeader($pValue)
    {
        $this->evenHeader = $pValue;
        return $this;
    }
    public function getEvenFooter()
    {
        return $this->evenFooter;
    }
    public function setEvenFooter($pValue)
    {
        $this->evenFooter = $pValue;
        return $this;
    }
    public function getFirstHeader()
    {
        return $this->firstHeader;
    }
    public function setFirstHeader($pValue)
    {
        $this->firstHeader = $pValue;
        return $this;
    }
    public function getFirstFooter()
    {
        return $this->firstFooter;
    }
    public function setFirstFooter($pValue)
    {
        $this->firstFooter = $pValue;
        return $this;
    }
    public function getDifferentOddEven()
    {
        return $this->differentOddEven;
    }
    public function setDifferentOddEven($pValue = false)
    {
        $this->differentOddEven = $pValue;
        return $this;
    }
    public function getDifferentFirst()
    {
        return $this->differentFirst;
    }
    public function setDifferentFirst($pValue = false)
    {
        $this->differentFirst = $pValue;
        return $this;
    }
    public function getScaleWithDocument()
    {
        return $this->scaleWithDocument;
    }
    public function setScaleWithDocument($pValue = true)
    {
        $this->scaleWithDocument = $pValue;
        return $this;
    }
    public function getAlignWithMargins()
    {
        return $this->alignWithMargins;
    }
    public function setAlignWithMargins($pValue = true)
    {
        $this->alignWithMargins = $pValue;
        return $this;
    }
    public function addImage(PHPExcel_Worksheet_HeaderFooterDrawing $image = NULL, $location = self::IMAGE_HEADER_LEFT)
    {
        $this->headerFooterImages[$location] = $image;
        return $this;
    }
    public function removeImage($location = self::IMAGE_HEADER_LEFT)
    {
        if(isset($this->headerFooterImages[$location])) {
            unset($this->headerFooterImages[$location]);
        }
        return $this;
    }
    public function setImages($images)
    {
        if(!is_array($images)) {
            throw new PHPExcel_Exception("Invalid parameter!");
        }
        $this->headerFooterImages = $images;
        return $this;
    }
    public function getImages()
    {
        $images = [];
        if(isset($this->headerFooterImages["LH"])) {
            $images["LH"] = $this->headerFooterImages["LH"];
        }
        if(isset($this->headerFooterImages["CH"])) {
            $images["CH"] = $this->headerFooterImages["CH"];
        }
        if(isset($this->headerFooterImages["RH"])) {
            $images["RH"] = $this->headerFooterImages["RH"];
        }
        if(isset($this->headerFooterImages["LF"])) {
            $images["LF"] = $this->headerFooterImages["LF"];
        }
        if(isset($this->headerFooterImages["CF"])) {
            $images["CF"] = $this->headerFooterImages["CF"];
        }
        if(isset($this->headerFooterImages["RF"])) {
            $images["RF"] = $this->headerFooterImages["RF"];
        }
        $this->headerFooterImages = $images;
        return $this->headerFooterImages;
    }
    public function __clone()
    {
        $vars = get_object_vars($this);
        foreach ($vars as $key => $value) {
            if(is_object($value)) {
                $this->{$key} = clone $value;
            } else {
                $this->{$key} = $value;
            }
        }
    }
}

?>